import fetch from 'utils/fetch';
/**
 * 家长管理
 */
//获取家长管理列表
export function findUsersByPage(curPage,pageSize,provinceId,cityId,areaId,exueCode,userName, phone,userType,startDate,endDate) {
  const data = {
    provinceId,
    cityId,
    areaId,
    exueCode,
    userName,
    phone,
    userType,
    startDate,
    endDate
  };
  return fetch({
      url: '/openEnrollment/findUsersByPage/'+curPage+'/'+pageSize,
      method: 'post',
      data
  });
}

// 修改密码
export function updatePassword(password, newPassword, confirmPassword, type) {
  const data = {
    password,
    newPassword,
    confirmPassword,
    type
  };
  return fetch({
    url: '/education/updatePassword',
    method: 'post',
    data
  });
}

// 验证原始密码
export function validatePasswordLib(password,type) {
  const data = {
    password,
    type
  };
  return fetch({
    url: '/education/validatePassword',
    method: 'post',
    data
  });
}



